// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "libcef/browser/permission/alloy_geolocation_access.h"

#include "base/logging.h"

bool AlloyGeolocationAccess::ContainOrigin(const CefString& origin) {
  return false;
}

bool AlloyGeolocationAccess::IsOriginAccessEnabled(const CefString& origin) {
  return true;
}

void AlloyGeolocationAccess::Enabled(const CefString& origin) {}

void AlloyGeolocationAccess::Disabled(const CefString& origin) {}

std::string AlloyGeolocationAccess::GetOriginKey(std::string& origin) {
  return pref_prefix_ + origin;
}
